package vn.vfriends.games.service;

import java.io.Serializable;
import java.util.List;
import vn.vfriends.games.jpa.entity.Role;

/**
 *
 * @author tuan@vfriends.vn
 */
public interface RoleService extends Serializable {
    
    public void create(Role role) throws Exception;

    public void edit(Role role) throws Exception;

    public void destroy(Long id) throws Exception;
    
    public List<Role> findRoles();

    public List<Role> findRoles(int maxResults, int firstResult);

    public Role findRole(Long id);
    
    public Role findRoleByName(String name);

    public int getRoleCount();

    public List<Role> findRolesByUserEmail(String email);
}
